l = [1, 3, 2]


def findMinandMax(l):
    i = l[0]
    j = l[0]
    for n in l:
        if i < n:
            i = n
        if j > n:
            j = n
    print("min=", j, "max=", i)


findMinandMax(l)
